package com.yf.exam.modules.tmpl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yf.exam.modules.tmpl.dto.ext.TmplQuAnswerDetailDTO;
import com.yf.exam.modules.tmpl.entity.TmplQuAnswer;

import java.math.BigDecimal;
import java.util.List;

/**
* <p>
* 试卷题目细则业务类
* </p>
*
* @author 聪明笨狗
* @since 2021-04-25 13:59
*/
public interface TmplQuAnswerService extends IService<TmplQuAnswer> {

    /**
     * 保存全部答案
     * @param refId
     * @param quType
     * @param totalScore
     * @param pathScore
     * @param content
     * @param answerList
     */
    void saveAll(String refId, String quType, BigDecimal totalScore, Boolean pathScore, String content,
                 List<TmplQuAnswerDetailDTO> answerList);

    /**
     * 根据题目移除
     * @param refIds
     */
    void removeByRefIds(List<String> refIds);
}
